package com.example.lenovo.application;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

class MyBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action=intent.getAction();

        Log.e("MyBroadcastReceiver","onReceive "+action);

//        if(action.equals("weather_info")){
//            String weather=intent.getStringExtra("weather");
//            int wendu=intent.getIntExtra("wendu",0);
//            Log.e("MyBroadcastReceiver","onReceive weather "+
//                    weather+" wendu "+wendu);
//        }else if(action.equals("traffic_info")){
//            String traffic=intent.getStringExtra("traffic");
//            int time=intent.getIntExtra("time",0);
//            Log.e("MyBroadcastReceiver","onReceive traffic "+
//                    traffic+" time "+time);
//        }

    }
}
